package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("refund_record")
@ApiModel(description = "退款记录表")
public class RefundRecord implements Serializable {
    @ApiModelProperty("主键，自增退款ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联支付ID")
    @TableField("payment_record_id")
    private Long paymentRecordId;

    @ApiModelProperty("退款金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("退款时间")
    @TableField("refunded_at")
    private LocalDateTime refundedAt;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;


}
